package com.yunmaozj.tools.lock;

import com.yunmaozj.tools.lock.domain.User;
import com.yunmaozj.tools.lock.service.UserService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
import org.springframework.transaction.TransactionManager;


/**
 * @author 钟明宏
 * @version V1.0
 * @date 2021-08-23 20:47
 **/
@SpringJUnitConfig(locations = {"classpath:applicationContext.xml"})
public class SpringApplication {

    @Autowired
    private UserService userService;

    @Test
    public void test_lock() {
        User user = userService.getUserById(1);
        System.out.println(user);
    }
}
